<?php
namespace app\home\controller;
use think\Controller;
use think\View;
use think\Db;
use think\Url;
use think\Request;
use app\admin\models\Goods;
class Index extends Controller
{
    public function index()
    {	$goods=new Goods;
    	//print_r($goods);exit;
    	$god=$goods->limit(3)->select()->toArray();   	
		$this->assign('god',$god);
		$god1=$goods->limit(2,3)->select()->toArray();   	
		$this->assign('god1',$god1);
	 return $this->fetch('index');
	
	}
	
	
}
?>